#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "GeneralLayer.h"
#import "HUDLayer.h"

@interface GeneralScene : CCScene <GeneralLayerDelegate, HUDLayerDelegate>{
@public
    GeneralLayer *layer;            //Play Layer
	HUDLayer *hudLayer;				//HUD Layer
	
@private
	
@protected
    NSMutableArray *answerAarray;    //The number play in this level    
    
    //Values of current Status
	int currentLevel;
	
    int totalWave;
    int currentWave;
    
    //Values from plist
    NSString *country;
    float totalTime;
    float remainingTime;
	float penaltyTime;
    

}

//Public Function
-(NSMutableArray*) genAnswer:(int)count min:(int)minVal max:(int)maxVal;
-(void) startLevel;
-(void) startWave:(int)wave;

//Protected Function
-(void) correctAnswer:(GeneralSprite *)sprite;
-(void) incorrectAnswer:(GeneralSprite *)sprite;
-(bool) isLevelCompleted;
-(bool) isWaveCompleted;

@property (nonatomic, retain) GeneralLayer *layer;
@property (nonatomic, retain) HUDLayer *hudLayer;
@property (nonatomic, retain) NSMutableArray *answerArray;
@property float totalTime, remainingTime, penaltyTime;
@property (nonatomic, retain) NSString *country;
@property int currentWave, totalWave, currentLevel;

@end